package com.qws.xprinter.flutter_xprinter.device

import net.posprinter.IDeviceConnection

interface QwsPrinter {

    fun connect()

    fun disconnect()

    fun sendPrintTask(bytes: List<Int>)

    fun Array<out Int>.toByteArray(): ByteArray {
        return ByteArray(size) { index -> this[index].toByte() }
    }
}